import { requestByPost, requestByGet } from '@/api/publicApi'

const SMS= 'sms'
const CMS = 'cms'
const MMS = 'mms'
const UMS = 'ums'
const PMS = 'pms'
const OMS = 'oms'

// 账号，手机号登录，无感刷新token，参数表单类型
export const getTokenApi = (params) => requestByPost('/zcyt-auth/oauth/token', params)
// 获取图片验证码
export const getImgCodeApi = () => requestByGet('/captcha')
// 发送短信验证码
export const sendSmsCodeApi = (params) => requestByGet(`/${CMS}/sms/verify/code`, params)
// 文件上传，参数表单类型
export const uploadFileApi = (file) => requestByPost(`/${CMS}/upload/single/simple`, file)
// 根据文件id查询文件地址
export const getFileUrlApi = (attachmentId) => requestByGet(`${CMS}/attachment/url/${attachmentId}`)
// 查询省、市、区县行政区
export const getRegionApi = (params) => requestByGet(`/${CMS}/region/query/region`, params)
// 查询城市数据
export const getRegionCityApi = () => requestByGet(`/${CMS}/region/city/list`)
// 厂商注册
export const registerApi = (params) => requestByPost(`/${MMS}/merchant/save`, params)

// 系统导航菜单
export const getSysMenusApi = () => requestByGet(`/${SMS}/merchant/menu/nav`)
// 获取厂商菜单列表
export const getMenusApi = () => requestByGet(`/${SMS}/merchant/menu/list`)
// 获取厂商注册信息
export const getFactoryInfoApi = () => requestByGet(`/${MMS}/merchant/merchant/info`)

/**
 * 角色管理
 */
// 新增,修改,删除角色
export const cudRoleApi = (type, params) => requestByPost(`/${SMS}/merchant/role/${type}`, params)
// 查询角色
export const getRolePagesApi = (params) => requestByGet(`/${SMS}/merchant/role/pages`, params)
// 查询角色下拉选择
export const getRoleApi = (params) => requestByGet(`/${SMS}/merchant/role/list`, params)
// 查询角色信息
export const getRoleInfoApi = (roleId) => requestByGet(`/${SMS}/merchant/role/${roleId}`)
// 给角色授权
export const setRoleAccessApi = (params) => requestByPost(`/${SMS}/role/menu/save`, params)
// 获取角色权限
export const getRoleAccessApi = (roleId) => requestByGet(`/${SMS}/role/menu/list/${roleId}`)

/**
 * 用户管理
 */
// 新增,修改,删除用户
export const cudUserApi = (type, params) => requestByPost(`/${SMS}/merchant/user/${type}`, params)
// 查询用户
export const getUserPagesApi = (params) => requestByGet(`/${SMS}/merchant/user/pages`, params)
// 查询用户信息
export const getUserInfoApi = (userId) => requestByGet(`/${SMS}/merchant/user/info/${userId}`)
// 查询登录用户信息
export const getLoginUserInfoApi = () => requestByGet(`/${SMS}/merchant/user/info`)
// 修改当前用户密码
export const updateLoginUserPasswordApi = (params) => requestByPost(`/${SMS}/merchant/user/update/password`, params)

/**
 * 码表（字典）管理
 */
// 新增，修改，删除码表
export const cudDictApi = (type, params) => requestByPost(`/${SMS}/dict/${type}`, params)
// 查询码表
export const getDictPagesApi = (params) => requestByGet(`/${SMS}/dict/pages`, params)
// 查询码表信息
export const getDictInfoApi = (dictId) => requestByGet(`/${SMS}/dict/info/${dictId}`)
// 系统初始化码表
export const initDictApi = () => requestByGet(`/${SMS}/dict/init/dict/list`)

/**
 * 系统配置
 */
// 新增或修改系统配置
export const saveOrUpdateSysConfigApi = (type, params) => requestByPost(`/${SMS}/sms/config/${type}`, params)
// 删除系统配置
export const deleteSysConfigApi = (params) => requestByPost(`/${SMS}/sms/config/delete`, params)
// 查询系统配置
export const getSysConfigPagesApi = (params) => requestByGet(`/${SMS}/sms/config/pages`, params)
// 查询系统配置信息
export const getSysConfigInfoApi = (configId) => requestByGet(`/${SMS}/sms/config/info/${configId}`)

/**
 * 轮播设置
 */
// 新增,修改,删除轮播
export const cudCarouselApi = (type, params) => requestByPost(`/${CMS}/carousel/${type}`, params)
// 查询轮播
export const getCarouselPagesApi = (params) => requestByGet(`/${CMS}/carousel/pages`, params)
// 查询轮播信息
export const getCarouselInfoApi = (carouselId) => requestByGet(`/${CMS}/carousel/${carouselId}`)

/**
 * 会员列表
 */
// 新增或修改会员
export const saveOrUpdateMemberApi = (type, params) => requestByPost(`/${UMS}/member/${type}`, params)
// 删除会员
export const deleteMemberApi = (params) => requestByPost(`/${UMS}/member/delete`, params)
// 查询会员
export const getMemberListPagesApi = (params) => requestByGet(`/${UMS}/member/pages`, params)
// 查询会员下拉列表
export const getMemberListApi = (params) => requestByGet(`/${UMS}/member/list`, params)
// 修改会员状态（启用/禁用）
export const updateMemberStatusApi = (memberId, enableStatus) => requestByPost(`/${UMS}/member/${memberId}/${enableStatus}`)

/**
 * 会员积分
 */
// 查询会员积分
export const getMemberIntegralPagesApi = (params) => requestByGet(`/${UMS}/point/pages`, params)
// 查询会员积分交易日志
export const getMiTradeLogPagesApi = (params) => requestByGet(`/${UMS}/point/record/history/pages`, params)
// 查询会员积分交易记录
export const getMiTradeRecordPagesApi = (params) => requestByGet(`/${UMS}/point/record/pages`, params)

/**
 * 银行卡管理
 */
// 新增或修改银行卡
export const cudBankCardApi = (type, params) => requestByPost(`/${CMS}/merchant/cash/card/${type}`, params)
// 查询银行卡
export const getBankCardListPagesApi = (params) => requestByGet(`/${CMS}/merchant/cash/card/pages`, params)
// 查询银行卡详情
export const getBankCardInfoApi = (cashCardId) => requestByGet(`/${CMS}/merchant/cash/card/${cashCardId}`)
// 修改银行卡状态（修改默认银行卡状态）
export const updateBankCardStatusApi = (cashCardId, defaultStatus) => requestByPost(`/${CMS}/merchant/cash/card/${cashCardId}/${defaultStatus}`)

/**
 * 地址管理
 */
// 新增，修改，删除地址
export const cudAddressApi = (type, params) => requestByPost(`/${CMS}/merchant/address/${type}`, params)
// 查询地址
export const getAddressListPagesApi = (params) => requestByGet(`/${CMS}/merchant/address/merchant/pages`, params)
// 查询地址下拉列表
export const getAddressListApi = () => requestByGet(`/${CMS}/merchant/address/select`)
// 查询地址详情
export const getAddressInfoApi = (id) => requestByGet(`/${CMS}/merchant/address/${id}`)
// 修改默认收货地址
export const updateReceiveAddresStatusApi = (id, receiveStatus) => requestByPost(`/${CMS}/merchant/address/receive/${id}/${receiveStatus}`)
// 修改默认发货地址
export const updateSendAddresStatusApi = (id, sendStatus) => requestByPost(`/${CMS}/merchant/address/send/${id}/${sendStatus}`)

/**
 * 运费模板
 */
// 新增，修改，删除
export const cudFreightTempApi = (type, params) => requestByPost(`/${PMS}/merchant/transport/${type}`, params)
// 分页查询
export const getFreightTempListPagesApi = (params) => requestByGet(`/${PMS}/merchant/transport/pages`, params)
// 下拉列表查询
export const getFreightTempListApi = () => requestByGet(`/${PMS}/merchant/transport/list`)
// 详情查询
export const getFreightTempInfoApi = (transportId) => requestByGet(`/${PMS}/merchant/transport/${transportId}`)

/**
 * 商品属性分类
 */
// 新增,修改,删除
export const cudGoodsAttrTypeApi = (type, params) => requestByPost(`/${PMS}/merchant/attribute/category/${type}`, params)
// 分页查询
export const getGoodsAttrTypeListPagesApi = (params) => requestByGet(`/${PMS}/merchant/attribute/category/pages`, params)
// 下拉列表查询
export const getGoodsAttrTypeListApi = () => requestByGet(`/${PMS}/merchant/attribute/category/list`)

/**
 * 商品属性分类-属性列表/参数列表
 */
// 新增,修改,删除属性/参数列表
export const cudGoodsAttrParamsApi = (type, params) => requestByPost(`/${PMS}/attribute/${type}`, params)
// 查询属性/参数列表
export const getGoodsAttrParamsApi = (type, attributeCategoryId) => requestByGet(`/${PMS}/attribute/list/${type}/${attributeCategoryId}`)
// 查询属性/参数详情
export const getGoodsAttrParamsInfoApi = (attributeId) => requestByGet(`/${PMS}/attribute/${attributeId}`)
// 查询商品属性列表（商品规格）
export const getGoodsAttrApi = (attributeCategoryId) => requestByGet(`/${PMS}/attribute/list/${attributeCategoryId}`)
// 查询商品参数列表（商品参数）
export const getGoodsParamsApi = (attributeCategoryId) => requestByGet(`/${PMS}/attribute/param/list/${attributeCategoryId}`)

/**
 * 商品资质
 */
// 新增,修改,删除
export const cudGoodsCredentialApi = (type, params) => requestByPost(`/${PMS}/merchant/cred/info/${type}`, params)
// 分页查询
export const getGoodsCredentialListPagesApi = (params) => requestByGet(`/${PMS}/merchant/cred/info/pages`, params)
// 查询商品资质（在商品列表中新增，编辑时候，选择资质使用）
export const getGoodsCredentialsListPagesApi = (params) => requestByGet(`${PMS}/merchant/cred/info/select/pages`, params)
// 详情查询
export const getGoodsCredentialInfoApi = (credInfoId) => requestByGet(`/${PMS}/merchant/cred/info/${credInfoId}`)
// 下拉列表查询
export const getGoodsCredentialListApi = (merchantId) => requestByGet(`/${PMS}/merchant/cred/info/list/${merchantId}`)

/**
 * 商品资质关联
 */
// 保存商品资质关联
export const saveGoodsCredentialRelevanceApi = (params) => requestByPost(`/${PMS}/merchant/cred/save`, params)
// 查询商品资质关联
export const getGoodsCredentialRelevanceApi = (productId) => requestByGet(`/${PMS}/cred/${productId}`)

/**
 * 品牌管理
 */
// 新增,修改,删除
export const cudBrandApi = (type, params) => requestByPost(`/${PMS}/merchant/product/brand/${type}`, params)
// 分页查询
export const getBrandListPagesApi = (params) => requestByGet(`/${PMS}/merchant/product/brand/pages`, params)
// 详情查询
export const getBrandInfoApi = (brandId) => requestByGet(`/${PMS}/merchant/product/brand/${brandId}`)
// 下拉列表查询
export const getBrandListApi = () => requestByGet(`/${PMS}/merchant/product/brand/list`)
// 启用,禁用修改
export const updateBrandStatusApi = (brandId, enableStatus) => requestByPost(`/${PMS}/merchant/product/brand/${brandId}/${enableStatus}`)

// 商品服务下拉列表查询
export const getGoodsServiceListApi = () => requestByGet(`/${PMS}/service/list`)
// 商品分类下拉列表查询
export const getGoodsTypeListApi = (params) => requestByGet(`/${PMS}/product/category/list`, params)

/**
 * 商品列表
 */
// 新增或修改商品基本信息
export const saveOrUpdateGoodsBaseInfoApi = (type, params) => requestByPost(`/${PMS}/merchant/product/base/${type}`, params)
// 新增或修改商品属性信息
export const saveOrUpdateGoodsAttrInfoApi = (params) => requestByPost(`/${PMS}/merchant/product/details/save/or/update`, params)
// 查询商品列表
export const getGoodsListPagesApi = (params) => requestByGet(`/${PMS}/merchant/product/pages`, params)
// 查询商品基本信息
export const getGoodsBaseInfoApi = (productId) => requestByGet(`/${PMS}/merchant/product/${productId}`)
// 修改商品上架,下架状态
export const updateGoodsPublishStatusApi = (productId, enableStatus) => requestByPost(`/${PMS}/merchant/product/publish/${productId}/${enableStatus}`)
// 修改商品审核状态
export const updateGoodsVerifyStatusApi = (productId) => requestByPost(`/${PMS}/merchant/product/verify/${productId}`)
// 查询商品属性信息
export const getGoodsAttrInfoApi = (productId) => requestByGet(`/${PMS}/product/details/${productId}`)
// 查询商品sku信息
export const getGoodsSkuInfoApi = (productId) => requestByGet(`/${PMS}/product/sku/list/${productId}`)
// 修改商品sku信息
export const updateGoodsSkuApi = (params) => requestByPost(`/${PMS}/product/sku/update`, params)

/**
 * 专区管理
 */
// 新增，修改，删除专区
export const cudZoneApi = (type, params) => requestByPost(`/${PMS}/zone/${type}`, params)
// 查询专区
export const getZoneListPagesApi = (params) => requestByGet(`/${PMS}/zone/pages`, params)
// 查询专区下拉列表
export const getZoneListApi = () => requestByGet(`/${PMS}/zone/select`)
// 查询专区详情
export const getZoneInfoApi = (productZoneId) => requestByGet(`/${PMS}/zone/${productZoneId}`)
// 修改专区启用状态
export const updateZoneStatusApi = (productZoneId, enableStatus) => requestByPost(`/${PMS}/zone/${productZoneId}/${enableStatus}`)

/**
 * 专区商品
 */
// 新增，删除专区商品
export const cdZoneGoodsApi = (type, params) => requestByPost(`/${PMS}/zone/product/${type}`, params)
// 查询专区商品
export const getZoneGoodsListPagesApi = (params) => requestByGet(`/${PMS}/zone/product/pages`, params)
// 修改专区商品上架状态
export const updateZoneGoodsStatusApi = (zoneProductId, enableStatus) => requestByPost(`/${PMS}/zone/product/publish/${zoneProductId}/${enableStatus}`)

/**
 * 金积分
 */
// 查询金积分
export const getGoldPointListPagesApi = (params) => requestByGet(`/${UMS}/integral/pages`, params)
// 查询金积分交易日志
export const getGpTradeLogPagesApi = (params) => requestByGet(`/${UMS}/integral/record/pages`, params)
// 查询金积分收益记录
export const getGpIncomeRecordPagesApi = (params) => requestByGet(`/${UMS}/integral/record/history/pages`, params)
// 赠送或扣除金积分
export const giveOrDeductGoldPointApi = (type, params) => requestByPost(`/${UMS}/integral/${type}`, params)

/**
 * 经销商注册规则
 */
// 新增、修改、删除经销商注册规则
export const cudRegisterRuleApi = (type, params) => requestByPost(`/${UMS}/dealer/login/rule/${type}`, params)
// 查询经销商注册规则
export const getRegisterRuleListPagesApi = (params) => requestByGet(`/${UMS}/dealer/login/rule/pages`, params)
// 查询经销商注册规则详情
export const getRegisterRuleInfoApi = (ruleId) => requestByGet(`/${UMS}/dealer/login/rule/info/${ruleId}`)
// 查询经销商注册规则下拉列表
export const getRegisterRuleListApi = (params) => requestByGet(`/${UMS}/dealer/login/rule/list`, params)
// 启用或停用经销商注册规则
export const updateRegisterRuleStatusApi = (params) => requestByPost(`/${UMS}/dealer/login/rule/update/enableStatus`, params)

/**
 * 商品申请规则
 */
// 新增、修改、删除商品申请规则
export const cudGoodsApplyRuleApi = (type, params) => requestByPost(`/${UMS}/product/bind/rule/${type}`, params)
// 查询商品申请规则
export const getGoodsApplyRuleListPagesApi = (params) => requestByGet(`/${UMS}/product/bind/rule/pages`, params)
// 查询商品申请规则详情
export const getGoodsApplyRuleInfoApi = (ruleId) => requestByGet(`/${UMS}/product/bind/rule/info/${ruleId}`)
// 查询商品申请规则下拉列表
export const getGoodsApplyRuleListApi = (params) => requestByGet(`/${UMS}/product/bind/rule/list`, params)
// 启用或停用商品申请规则
export const updateGoodsApplyRuleStatusApi = (params) => requestByPost(`/${UMS}/product/bind/rule/update/enableStatus`, params)

/**
 * 加盟介绍
 */
// 新增或修改加盟介绍
export const saveOrUpdateJoinIntroApi = (type, params) => requestByPost(`/${UMS}/ums/dealer/introduce/${type}`, params)
// 查询加盟介绍
export const getJoinIntroListPagesApi = (params) => requestByGet(`/${UMS}/ums/dealer/introduce/pages`, params)
// 查询加盟介绍详情
export const getJoinIntroInfoApi = (introduceId) => requestByGet(`/${UMS}/ums/dealer/introduce/info/${introduceId}`)

/**
 * 提现申请
 */
// 查询提现申请
export const getCashApplyListPagesApi = (params) => requestByGet(`/${UMS}/cash/out/apply/pages`, params)
// 查询提现申请详情
export const getCashApplyInfoApi = (cashOutId) => requestByGet(`/${UMS}/cash/out/apply/${cashOutId}`)
// 提现申请通过或驳回
export const passOrRejectCashApplyApi = (type, params) => requestByPost(`/${UMS}/cash/out/apply/${type}`, params)

/**
 * 推广员列表
 */
// 查询推广员
export const getPromoterListPagesApi = (params) => requestByGet(`/${UMS}/promoter/pages`, params)
// 查询推广员详情
export const getPromoterInfoApi = (dealersId) => requestByGet(`/${UMS}/promoter/${dealersId}`)
// 查询推广员下拉列表
export const getPromoterListApi = (params) => requestByGet(`/${UMS}/promoter/list`, params)
// 新增、修改、删除推广员
export const cudPromoterApi = (type, params) => requestByPost(`/${UMS}/promoter/${type}`, params)
// 启用或停用推广员
export const updatePromoterStatusApi = (dealersId, enableStatus) => requestByPost(`/${UMS}/promoter/${dealersId}/${enableStatus}`)

/**
 * 经销商列表
 */
// 查询经销商
export const getDealerListPagesApi = (params) => requestByGet(`/${UMS}/dealer/pages`, params)
// 查询经销商下拉列表
export const getDealerListApi = (params) => requestByGet(`/${UMS}/dealer/list`, params)
// 查询经销商详情
export const getDealerInfoApi = (dealersId) => requestByGet(`/${UMS}/dealer/${dealersId}`)
// 修改或删除经销商
export const updateOrdeleteDealerApi = (type, params) => requestByPost(`/${UMS}/dealer/${type}`, params)
// 启用或停用经销商
export const updateDealerStatusApi = (dealersId, enableStatus) => requestByPost(`/${UMS}/dealer/${dealersId}/${enableStatus}`)

/**
 * 经销商申请
 */
// 新增经销商申请
export const saveDealerApplyApi = (params) => requestByPost(`/${UMS}/dealer/apply/plaform`, params)
// 查询经销商申请
export const getDealerApplyListPagesApi = (params) => requestByGet(`/${UMS}/dealer/apply/pages`, params)
// 查询经销商申请详情
export const getDealerApplyInfoApi = (dealerApplyId) => requestByGet(`/${UMS}/dealer/apply/${dealerApplyId}`)
// 删除经销商申请
export const deleteDealerApplyApi = (params) => requestByPost(`/${UMS}/dealer/apply/delete`, params)
// 经销商申请审核（通过，驳回）
export const updateDealerApplyStatusApi = (params) => requestByPost(`/${UMS}/dealer/apply/status`, params)

/**
 * 经销商商品申请
 */
// 新增经销商商品申请
export const saveDealerGoodsApplyApi = (params) => requestByPost(`/${UMS}/product/apply/save`, params)
// 查询经销商商品申请
export const getDealerGoodsApplyListPagesApi = (params) => requestByGet(`/${UMS}/product/apply/pages`, params)
// 查询经销商商品申请详情
export const getDealerGoodsApplyInfoApi = (productApplyId) => requestByGet(`/${UMS}/product/apply/${productApplyId}`)
// 经销商商品申请审核（通过，驳回）
export const updateDealerGoodsApplyStatusApi = (params) => requestByPost(`/${UMS}/product/apply/verify`, params)

/**
 * 退货原因
 */
// 新增、修改、删除退货原因
export const cudReturnGoodsReasonApi = (type, params) => requestByPost(`/${OMS}/return/reason/${type}`, params)
// 查询退货原因
export const getReturnGoodsReasonListPageApi = (params) => requestByGet(`/${OMS}/return/reason/pages`, params)
// 查询退货原因下拉列表
export const getReturnGoodsReasonList = () => requestByGet(`/${OMS}/return/reason/list`)
// 启用，停用退货原因
export const updateReturnGoodsReasonStatusApi = (id, enableStatus) => requestByPost(`/${OMS}/return/reason/${id}/${enableStatus}`)

/**
 * 订单列表
 */
// 分页查询
export const getOrderListPageApi = (params) => requestByGet(`/${OMS}/merchant/order/pages`, params)
// 详情查询
export const getOrderInfoApi = (orderId) => requestByGet(`/${OMS}/merchant/order/${orderId}`)
// 新增订单
export const saveOrderApi = (params) => requestByPost(`/${OMS}/order/save`, params)
// 给订单添加卖家备注
export const saveOrderNoteApi = (params) => requestByPost(`/${OMS}/order/note`, params)
// 查询订单物流信息
export const getOrderLogisticsApi = (deliveryCode) => requestByGet(`/${OMS}/order/logistics/${deliveryCode}`)
// 根据订单id查询发货地址
export const getSendGoodsAddressApi = (orderId) => requestByGet(`/${OMS}/order/receive/${orderId}`)
// 根据订单id查询订单商品信息
export const getOrderInGoodsInfoApi = (orderId) => requestByGet(`/${OMS}/order/item/list/${orderId}`)
// 订单发货
export const giveOrderSendGoodsApi = (params) => requestByPost(`/${OMS}/order/delivery/save`, params)
// 修改收货地址信息
export const updateAddressInfApi = (params) => requestByPost(`/${OMS}/order/receive/update`, params)

/**
 * 退货列表
 */
// 分页查询
export const getReturnGoodsListPageApi = (params) => requestByGet(`/${OMS}/merchant/order/return/goods/pages`, params)
// 详情查询
export const getReturnGoodsInfoApi = (returnId) => requestByGet(`/${OMS}/merchant/order/return/goods/${returnId}`)
// 新增退货
export const saveReturnGoodsApi = (params) => requestByPost(`/${OMS}/order/return/goods/save`, params)
// 查询退货/换货商品信息（审核时候）
export const getReturnGoodslistApi = (returnId) => requestByGet(`/${OMS}/order/return/product/list/${returnId}`)
// 确认收货并退款中
export const confirmTakeGoodsRefundApi = (returnId) => requestByPost(`/${OMS}/order/return/goods/received/${returnId}`)
// 确认退款
export const confirmReturnRefundApi = (returnId) => requestByPost(`/${OMS}/order/return/goods/refund/${returnId}`)
// 退货申请通过
export const passReturnGoodsApplyApi = (returnId) => requestByPost(`/${OMS}/order/return/goods/pass/${returnId}`)
// 退货申请驳回
export const rejectReturnGoodsApplyApi = (params) => requestByPost(`/${OMS}/order/return/goods/reject`, params)

/**
 * 退款列表
 */
// 分页查询
export const getRefundListPageApi = (params) => requestByGet(`/${OMS}/merchant/order/refund/pages`, params)
// 详情查询
export const getRefundInfoApi = (returnId) => requestByGet(`/${OMS}/merchant/order/refund/${returnId}`)
// 新增退款
export const saveRefundApi = (params) => requestByPost(`/${OMS}/order/refund/save`, params)
// 确认退款
export const confirmRefundApi = (returnId) => requestByPost(`/${OMS}/order/refund/refund/${returnId}`)
// 退款申请通过
export const passRefundApplyApi = (returnId) => requestByPost(`/${OMS}/order/refund/pass/${returnId}`)
// 退款申请驳回
export const rejectRefundApplyApi = (params) => requestByPost(`/${OMS}/order/refund/reject`, params)

/**
 * 换货列表
 */
// 分页查询
export const getExchangeGoodsListPageApi = (params) => requestByGet(`/${OMS}/merchant/order/exchange/goods/pages`, params)
// 详情查询
export const getExchangeGoodsInfoApi = (returnId) => requestByGet(`/${OMS}/merchant/order/exchange/goods/${returnId}`)
// 卖家确认发货
export const confirmSendGoodsApi = (params) => requestByPost(`/${OMS}/merchant/order/exchange/goods/delivered`, params)
// 卖家确认收货
export const confirmTakeGoodsApi = (returnId) => requestByPost(`/${OMS}/merchant/order/exchange/goods/received/${returnId}`)
// 新增换货
export const saveExchangeGoodsApi = (params) => requestByPost(`/${OMS}/order/exchange/goods/save`, params)
// 换货申请通过
export const passExchangeGoodsApplyApi = (returnId) => requestByPost(`/${OMS}/order/exchange/goods/pass/${returnId}`)
// 换货申请驳回
export const rejectExchangeGoodsApplyApi = (params) => requestByPost(`/${OMS}/order/exchange/goods/reject`, params)